home *** CD-ROM | disk | FTP | other *** search
/ How to Get Online 1996 Spring / HOW2GON.ISO / mac / Servers & CGI / ServerScreenCapture.0.3 folder / about ServerScreenCapture 0.3 next >
Encoding:
Text File  |  1995-12-19  |  2.7 KB  |  36 lines  |  [ttro/ttxt]

  1. Web Server Screen Capture Utility
  2. version 0.3 (December 19, 1995)
  3. written by Steve Maller
  4. steve@maller.com
  5. http://www.maller.com/
  6.  
  7. I run a Macintosh with a MacHTTP web server and an Apple Internet Mail Server in my office, and there are times I’d just like to peek at the Mac’s screen. However, I don’t like waiting for that machine’s monitor to warm up. Even worse, I recently had to borrow that machine’s monitor for another machine. My solution?
  8.  
  9. I wrote this CGI application in CodeWarrior C that takes a screenshot of the current Macintosh screen, converts it to a GIF image, and returns it to your Web browser. 
  10.  
  11. I used Grant Neufeld’s excellent framework (Grant's CGI Framework 1.0b10).
  12.  
  13. Installation
  14. To install the program, just copy it to the same folder you use for your other CGI scripts and applications (or make a new one...it doesn’t matter where you put it). You should give the program a unique name unless you want everybody on the WWW to be peeking at your server’s screen!
  15.  
  16. Use
  17. In your web browser, type the following URL:
  18.  
  19.   http://<your server name here>/<the program's folder>/<the program's name>
  20.  
  21. For example, if your server is www.goofball.com, your CGI folder is called MyCGIs and you named my program capture_it.acgi, you would use the following URL:
  22.  
  23.   http://www.goofball.com/MyCGIs/capture_it.acgi
  24.  
  25. Some notes about the current version (version 0.3)
  26. • This version returns only a GIF image. Thanks to Eric A. Perlman (eric@yikes.com) for the suggestion (and the instructions!).
  27. • This version is once again a fat binary. It’s been tested on quite a few Power Macintosh models and it works just fine. I think I’ve figured out the problems (thanks to some help out there!).
  28. • The program is hard-coded to generate a 256-color, 640*480 GIF image. If your display’s something other than that, it’ll try to dither the image for the best possible quality.
  29. • It takes anywhere from 2 to 10 seconds (or more?) to generate the GIF image, so be patient.
  30.  
  31. A note about Netscape (and other browsers?) caches
  32. • It is entirely possible that your browser will cache ServerScreenCapture's GIF image, causing it to appear out-of-date. You can hit option-Reload in Netscape and it'll completely flush its cache. I added a Pragma: no cache directive to the http header, but it doesn’t seem to help Netscape (sigh).
  33.  
  34. Legalese
  35. This software is provided free of charge. It’s the least I can do to repay the ’net for all the fun and productivity I’ve wrung from it. That said, you use this software at your own risk, I assume no responsibility for anything it says or does to you or anybody you know. This software is ©1995 Steve Maller. All rights reserved. This software may be freely distributed as long as this notice accompanies it. This software may not be sold for profit.
  36.